package cn.backpackerxl.model;
import cn.backpackerxl.easyJDBC.annotation.*;
import cn.backpackerxl.easyJDBC.util.JSON;
import cn.backpackerxl.easyJDBC.util.IdType;

import java.util.Date;
/**
 * @Author: backpackerxl
 * CreateTime: 2022/11/24
 * FileName: t_admin
 **/
@Table(value="t_admin",dev = true,show = true)
public class Admin {
	@Id(strategy = IdType.AUTO)
	private int id;
	private String name;
	private String passwd;
	private Date createTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return JSON.stringify(this);
	}
}